home *** CD-ROM | disk | FTP | other *** search
- Path: erinews.ericsson.se!usenet
- From: eraida@lmera.ericsson.se (Inger Dufva Z/OF)
- Newsgroups: comp.lang.c
- Subject: How to remove a substring from a string
- Date: 9 Jan 1996 16:32:59 GMT
- Organization: Ericsson Radio Systems AB
- Distribution: world
- Message-ID: <4cu5br$ejb@erinews.ericsson.se>
- Reply-To: eraida@lmera.ericsson.se
- NNTP-Posting-Host: lmerax532.lmera.ericsson.se
- Keywords: c, unix, string
-
- Hi,
-
- I would like to remove a sub string from a string in C. An example:
-
- string: howdoyoudo
- sub_string: you
-
- After this function (called remove_substring here) has been called:
-
- new_string = remove_substring(string, sub_string);
-
- new_string should have the value: howdodo
-
- Can anyone please help me with this function? Thanks in advance!
- Cheers,
-
- Inger
-
-
-
-
-
-
-